<jsp:useBean id="loginUser" scope="session" type="nuc.pojo.User"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<%pageContext.setAttribute("ctp",request.getContextPath());%>
<head>
    <title>店铺首页</title>
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/normalize.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/htmleaf-demo.css">
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/toolbar/style.css">
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/normalize.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/demo.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/fonts/tour/font-awesome-4.2.0/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/tour/menu_sideslide.css" />
    <link rel="stylesheet" type="text/css" href="${ctp}/static/css/img.css">
</head>
<body>
<div class="container">
    <div class="menu-wrap">
        <nav class="menu">
            <div class="icon-list">
                <a href="${ctp}/shop/userInfo"><span><div id="divcss5"><img src="${ctp}/get/userImg/${loginUser.userName}" alt="头像" height="80" width="80"/></div>${loginUser.userName}</span></a>
                <a href="${ctp}/shop/shopIndex"><i class="fa fa-fw fa-bar-chart-o"></i><span>主页</span></a>
                <a href="${ctp}/shop/addGoodPage"><i class="fa fa-fw fa-star-o"></i><span>添加鲜花</span></a>
                <a href="${ctp}/shop/getShopOrder/unsent"><i class="fa fa-fw fa-bell-o"></i><span>订单</span></a>
                <a href="${ctp}/update/updateUserInfo"><i class="fa fa-fw fa-envelope-o"></i><span>修改个人信息</span></a>
                <a href="${ctp}/logOut"><i class="fa fa-fw fa-newspaper-o"></i><span>退出登录</span></a>
            </div>
        </nav>
        <button class="close-button" id="close-button">Close Menu</button>
    </div>
    <button class="menu-button" id="open-button">Open Menu</button>
    <div class="content-wrap">
        <div class="content">
            <div class="htmleaf-container">
                <header class="htmleaf-header">
                    <h1>在线鲜花 <span>足不出户就能送货上门</span></h1>
                </header>
                <div id="centralTable">
                    <table border="1" cellpadding="5" cellspacing="0" title="店铺鲜花">
                        <thead>
                        <tr>上架鲜花</tr>
                        <tr>
                            <th>鲜花ID</th>
                            <th>鲜花名称</th>
                            <th>销量</th>
                            <th>库存</th>
                            <th>进价</th>
                            <th>售价</th>
                            <th>鲜花分类</th>
                            <th>鲜花图片</th>
                            <th>描述</th>
                            <th>下架</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${upshelfGoods}" var="upshelfGood">
                            <tr>
                                <td>${upshelfGood.goodId}</td>
                                <td>${upshelfGood.goodName}</td>
                                <td>${upshelfGood.sellNum}</td>
                                <td>${upshelfGood.quantity}</td>
                                <td>${upshelfGood.purchasePrice}</td>
                                <td>${upshelfGood.sellPrice}</td>
                                <td>${upshelfGood.species}</td>
                                <td><img src="${ctp}/get/goodImg/${upshelfGood.goodId}" width="100" height="100" alt="鲜花图片"/></td>
                                <td>${upshelfGood.description}</td>
                                <td><a href="${ctp}/update/goodUpshelfOrDownShelf/${upshelfGood.goodId}/false">下架</a></td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table><br/>
                    <table border="1" cellpadding="5" cellspacing="0" title="未上架鲜花">
                        <thead>
                        <tr>未上架鲜花</tr>
                        <tr>
                            <th>鲜花ID</th>
                            <th>鲜花名称</th>
                            <th>销量</th>
                            <th>库存</th>
                            <th>进价</th>
                            <th>售价</th>
                            <th>鲜花图片</th>
                            <th>描述</th>
                            <th>编辑</th>
                            <th>上架</th>
                            <th>删除</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${downshelfGoods}" var="downshelfGood">
                            <tr>
                                <td>${downshelfGood.goodId}</td>
                                <td>${downshelfGood.goodName}</td>
                                <td>${downshelfGood.sellNum}</td>
                                <td>${downshelfGood.quantity}</td>
                                <td>${downshelfGood.purchasePrice}</td>
                                <td>${downshelfGood.sellPrice}</td>
                                <td><img src="${ctp}/get/goodImg/${downshelfGood.goodId}" width="100" height="100" alt="鲜花图片"/></td>
                                <td>${downshelfGood.description}</td>
                                <td><a href="${ctp}/get/goodInfo/${downshelfGood.goodId}">编辑</a></td>
                                <td><a href="${ctp}/update/goodUpshelfOrDownShelf/${downshelfGood.goodId}/true">上架</a></td>
                                <td><a href="${ctp}/update/delGood/${downshelfGood.goodId}">删除</a></td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table><br/><br/><br/>
                </div>
            </div>
        </div>
    </div><!-- /content-wrap -->
</div><!-- /container -->

<script src="${ctp}/static/js/tour/classie.js"></script>
<script src="${ctp}/static/js/tour/main.js"></script>
</body>
</html>
